<section id="score-inquiry" class="section">
	<div class="content">
		<div class="match-info clearfix">
			<a href="javascript:;" class="image pull-left"><img src="{{subjects.image}}" alt=""></a>
			<div class="title pull-left">
				<h4 ng-bind="subjects.title"></h4>
				<p><span ng-repeat="subject in subjects.subject" ng-bind="subject.subjectName" ng-if="subject.subjectId==subjectIds"></span></p>
			</div>
			<div class="text pull-right">
				<span class="address" ng-bind="subjects.address"></span>
				<span class="time" ng-bind="subjects.time"></span>
			</div>
		</div>
		<div class="search-info">
			<form class="form-horizontal" role="search" name="myForm" ng-submit="submitForm()" novalidate>
				<div class="form-group" ng-class="{'has-success': myForm.userId.$dirty}" ng-hide="myForm.userName.$valid || myForm.teamName.$valid">
					<label for="" class="col-xs-3 control-label">选手号:</label>
					<div class="col-xs-9">
						<input type="text" class="form-control" id="userId" placeholder="" name="userId" ng-model="user.userId" required>
						<i class="fa fa-check form-control-feedback" ng-show="myForm.userId.$dirty && myForm.userId.$valid"></i>
					</div>
				</div>
				<div class="form-group" ng-class="{'has-success': myForm.userName.$dirty}" ng-hide="myForm.userId.$valid || myForm.teamName.$valid">
					<label for="" class="col-xs-3 control-label">选手姓名:</label>
					<div class="col-xs-9">
						<input type="text" class="form-control" id="userName" placeholder="" name="userName" ng-model="user.userName" required>
						<i class="fa fa-check form-control-feedback" ng-show="myForm.userName.$dirty && myForm.userName.$valid"></i>
					</div>
				</div>
				<div class="form-group" ng-class="{'has-success': myForm.teamName.$dirty}" ng-hide="myForm.userId.$valid || myForm.userName.$valid">
					<label for="" class="col-xs-3 control-label">团队名称:</label>
					<div class="col-xs-9">
						<input type="text" class="form-control" id="teamName" placeholder="" name="teamName" ng-model="user.teamName" required>
						<i class="fa fa-check form-control-feedback" ng-show="myForm.teamName.$dirty && myForm.teamName.$valid"></i>
					</div>
				</div>
				<div class="form-group">
					<button type="submit" class="btn btn-blue" ng-disabled="myForm.userId.$invalid && myForm.userName.$invalid && myForm.teamName.$invalid">查询成绩</button>
				</div>
			</form>
		</div>
	</div>
</section>